SCRIPTPATH=`dirname $0`

service apache2 stop

su cloudcrv -c "sh $SCRIPTPATH/runbycloudcrv.sh"

rm -fr /tmp/crv/data/sessions/*; cp /opt/cloudcrv/puppet/manifests/nodes.pp.cloudcrv.template /opt/cloudcrv/puppet/manifests/nodes.pp

apache2ctl configtest

mv /var/log/apache2/error.log /var/log/apache2/error.log.old

service apache2 start

